using System.Collections;

namespace Portal.Data.Webparts
{
    public class MenuItem
    {
        public string Name;
        public string CSSClass;
        public string Link;

        private readonly ArrayList _subItems = new ArrayList();

        public void AddItem(MenuItem item)
        {
            _subItems.Add(item);
        }

        public int Count
        {
            get
            {
                return _subItems.Count;
            }
        }

        public MenuItem this[int index]
        {
            get
            {
                return (MenuItem)_subItems[index];
            }
        }

        public MenuItem(string name, string cssClass, string link)
        {
            Name = name;
            Link = link;
            CSSClass = cssClass;
        }
    }
}
